<template>
    <div class="error">
        <h1>404</h1>
        <h2>很抱歉，访问错误</h2>
        <button @click="goback()">返回页面</button>
    </div>
    <!-- <el-result title="404" sub-title="很抱歉，访问错误">
        <template #icon>
            <el-image src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png" />
        </template>
        <template #extra>
            <el-button type="primary" @click="goback()">返回</el-button>
        </template>
    </el-result> -->
</template>
  

<script>
export default {
    data() {
        return {

        }
    },
    mounted() {
        // console.log(this.$route.params.title);
        // console.log(this.$route);
    },
    methods: {
         goback(){
            this.$router.push('/home')
        }
    },
}

</script>

<style scoped>
.error {
    margin-top: 10%;
    text-align: center;
}
</style>